package com.shanjupay.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author xiaoman
 * @version 1.0
 * @date 2021/6/20 20:06
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BcException extends RuntimeException  {
    private String message;
    private String code;

    public BcException(){
        super();
    }
    public BcException(String message) {
        super(message);
        this.message = message;
    }

    public BcException(String code, String message) {
        super(message);
        this.message = message;
        this.code = code;
    }
}
